package com.fxb.learn;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @author fangjiaxiaobai@gmail.com
 * @date 2020-05-14
 * @since 1.0.0
 */
public class ConcurrentHashMapDemo {

    public static void main(String[] args) {
//        ConcurrentHashMap<Integer, Integer> concurrentHashMap = new ConcurrentHashMap();
//        concurrentHashMap.put(1, 1);
//        concurrentHashMap.put(2, 1);
//        concurrentHashMap.put(15, 1);
        ConcurrentHashMap<String, Integer> concurrentHashMap = new ConcurrentHashMap();
        concurrentHashMap.put("1", 1);
        concurrentHashMap.put("2", 1);
        concurrentHashMap.put("15", 1);


    }


}
